class UserInfoModel {
  UserInfo userInfo;

  UserInfoModel({this.userInfo});

  UserInfoModel.fromJson(Map<String, dynamic> json) {
    userInfo = json['userInfo'] != null
        ? new UserInfo.fromJson(json['userInfo'])
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.userInfo != null) {
      data['userInfo'] = this.userInfo.toJson();
    }
    return data;
  }
}

class UserInfo {
  String picture;
  String nickname;

  UserInfo({this.picture, this.nickname});

  UserInfo.fromJson(Map<String, dynamic> json) {
    picture = json['picture'];
    nickname = json['nickname'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['picture'] = this.picture;
    data['nickname'] = this.nickname;
    return data;
  }
}